<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


Route::group(['namespace' => 'Api'], function () {

    //轮播图
    Route::get('/banner', 'BannerController@getBannerLists');
    //文章列表
    Route::get('/goods', 'GoodsController@getGoodsLists');
    //文章详情
    Route::get('/detail', 'GoodsController@goodsDetail');
    //登录
    Route::post('/login', 'WechatController@doLogin');
    //修改头像
    Route::post('/update', 'WechatController@update');
//上传
    Route::post('/file', 'FileController@aaa');

});


